package com.example.aop;

import com.example.aop.service.OrderService;
import com.example.aop.service.SpringConfig;
import com.example.aop.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * ClassName:testAspect1
 * Package:com.example.aop
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/11-8:52
 * @Version:v1.0
 */
public class testAspect1 {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringConfig.class);
        OrderService orderService = applicationContext.getBean("orderService", OrderService.class);
        orderService.generate();
    }
}
